import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * user:likai
 * Date:2022-09-12
 * Time:19:56
 */
class OutTer{
    public int data1;
    int data2;
    public static int data3;
    //实例内部类
    //实例内部类调用外部内类的相同的对象:ouTer.this.data1
    class InNer{
        public int data4;
        int data5;
        //这是不对的
        //不能定义静态变量，//有外部类对象的引用，才能调用内部类，//static 是属于类
        //加final 就变成变量了
        //final 相当于c语言里的const，不能被修改
        //final
        //public static int data6;
    }
}
public class Year {
    private int age;
    public void setAge(int age){
        this.age=age;
    }
    public int getAge(){
        if(this.age<0){
            return 0;
        } else if (this.age>200) {
            return 200;
        }else {
            return this.age;
        }
    }

    public static void main(String[] args) {
        Year person=new Year();
        Scanner scanner=new Scanner(System.in);
        while(scanner.hasNextInt()){
            int age= scanner.nextInt();
            person.setAge(age);
            System.out.println(person.getAge());
        }
        OutTer outTer=new OutTer();
        OutTer.InNer inNer= outTer.new InNer();
    }
}
